iT邦幫忙

2025 iThome 鐵人賽

DAY 11
0
Modern Web

從0到有做出一個商家網頁系列 第 11

Day11:新增跳轉的頁面

  • 分享至 

  • xImage
  •  

今天要來新增按下選單以跳轉的網頁

新增頁面的方式,跟製作主頁面一樣,在檔案區新增一個xxxx.html的檔案,這裡我們因為有兩個頁面要跳轉,
所以要新增兩個檔案
https://ithelp.ithome.com.tw/upload/images/20250813/20176052wVJa8hnjwc.png

css檔案同樣要新增兩個,一樣要加與html檔案連結的程式
https://ithelp.ithome.com.tw/upload/images/20250813/20176052lS2v3ViS8X.png

address.css
https://ithelp.ithome.com.tw/upload/images/20250813/201760529a9VCAmmdO.png

content.css
https://ithelp.ithome.com.tw/upload/images/20250813/20176052b6QJyMKYcR.png

連結html檔案的程式
https://ithelp.ithome.com.tw/upload/images/20250813/20176052MVfniTUtzY.png

為了確保每個頁面的版面都相同,我們要將之前製作主頁面的程式碼複製過去

address.html
https://ithelp.ithome.com.tw/upload/images/20250813/20176052wLFBQEmXlO.png

content.html
https://ithelp.ithome.com.tw/upload/images/20250813/201760522euyPo5Uh2.png

這樣就完成新增的跳轉頁面了

address網頁
https://ithelp.ithome.com.tw/upload/images/20250813/20176052pE6ZMUHtjH.png

content網頁
https://ithelp.ithome.com.tw/upload/images/20250813/20176052knNOLbnmu6.png

今天就先做到這裡我們明天繼續!


上一篇
Day10:繼續修改網頁內文
下一篇
Day12:編輯分頁的內容
系列文
從0到有做出一個商家網頁30
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言